﻿using System;
using MagicWorld.DDD.Domain.Entity;
using MagicWorld.DDD.Domain.Types;

namespace MagicWorld.DDD.Domain.Service.DamagePolicy.Impl
{
    /// <summary>
    /// 龙的伤害策略
    /// </summary>
    public class DragoonPolicy : IDamagePolicy
    {
        public long CalculateDamage(Player player, Weapon weapon, Monster monster)
        {
            return weapon.Damage * 2;
        }

        public bool CanApply(Player player, Weapon weapon, Monster monster)
        {
            return player.PlayerClass == PlayerClass.DragonKnight && monster.MonsterClass == MonsterClass.Dragoon;
        }
    }
}